package cn.itcast.wanxinp2p.consumer.service;

import cn.itcast.wanxinp2p.api.consumer.model.ConsumerRegisterDTO;
import cn.itcast.wanxinp2p.api.consumer.model.ConsumerRequest;
import cn.itcast.wanxinp2p.api.depository.model.GatewayRequest;
import cn.itcast.wanxinp2p.common.domain.RestResponse;
import cn.itcast.wanxinp2p.consumer.entity.Consumer;
import com.baomidou.mybatisplus.extension.service.IService;

public interface ConsumerService extends IService<Consumer> {

    /**
     * 检测用户是否存在
     */
    Integer checkMobile(String mobile);

    /**
     * 用户注册
     */
    void register(ConsumerRegisterDTO consumerRegisterDTO);


    /**
     * 生成开户数据
     */
    RestResponse<GatewayRequest> createConsumer(ConsumerRequest consumerRequest);

}
